Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix DBusRemote using the wrong attribute #88

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

lilydjwg
Copy link

fixes this:

>>> bus = pystemd.dbuslib.DBusRemote(b'myhost')
>>> bus.open()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "pystemd/dbuslib.pyx", line 303, in pystemd.dbuslib.DBus.open
    rets = self.open_dbus_bus()
  File "pystemd/dbuslib.pyx", line 577, in pystemd.dbuslib.DBusRemote.open_dbus_bus
    return dbusc.sd_bus_open_system_remote(&(self.bus), self.remote)
AttributeError: 'pystemd.dbuslib.DBusRemote' object has no attribute 'remote'

@lilydjwg
Copy link
Author

Also fix use-after-free which shows up at the python interactive shell.

The CI failures are some fedora distributions failing to find and install cython.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant